package com.mjh.zhujianju.dao.party;

import com.livew.framework.base.dao.BaseMapper;
import com.mjh.zhujianju.model.party.BuildingExamTopicEO;
import com.mjh.zhujianju.vo.party.BuildingExamTopicVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BuildingExamTopicMapper extends BaseMapper<BuildingExamTopicEO> {

    /**
     * 根据试题id查询正确答案
     * @param examId
     * @return
     */
    List<BuildingExamTopicVO> selectTopicAnswers(Long examId);

    /**
     * 根据课题id查询下面所有试题
     * @param examId
     * @return
     */
    List<BuildingExamTopicEO> selectTopicList(Long examId);

    /**
     * 根据id查询全部
     * @param list
     * @return
     */
    List<BuildingExamTopicEO> queryTopicByIds(List<Long> list);
}